#ifndef EDIT_H
#define EDIT_H

#include <QWidget>
#include <QSqlQuery>
#include <QMessageBox>
#include <QTcpSocket>
namespace Ui {
class edit;
}

class edit : public QWidget
{
    Q_OBJECT

public:
    explicit edit(QWidget *parent = nullptr);
    ~edit();

private slots:
    void on_savePrescriptionButton_clicked();



    void on_pushButton_clicked();

private:
    Ui::edit *ui;
    void savePrescription(); // 保存处方到数据库
    QTcpSocket *tcpSocket;
};

#endif // EDIT_H
